import { List } from 'antd-mobile'
import React, { Component } from 'react'
import {Route,Link } from "react-router-dom"
import weddOne from "../../views/weddOne"
 class Wedd extends Component {
     constructor(props, context) {
         super(props, context)
    //      this.state={
    //          arr:[
    //              {  id:1, name:"婚纱摄影", pathname="/weddOne"},
    //              {id:2, name:"婚礼策划",pathname="/weddOne"},
    //              { id:3, name:"婚纱礼服",pathname="/weddOne"},
    //              { id:4, name:"新娘跟妆", pathname:"/weddTwo"},
    //              { id:5, name:"婚礼跟拍",pathname:"/weddTwo"}
    //             ],
    //          list:[
    //              {  id:1, name:"婚礼司仪", pathname:"/weddTwo"},
    //              {id:2, name:"订婚宴",pathname:"/weddThree"},
    //              { id:3, name:"儿童摄影",pathname:"/weddTwo"},
    //             ],
    //  }
    }
    render(){
        // let {arr,list} =this.state
        return (
            <div>
               <div onClick={()=>{
                   window.open("/weddOne")
               }}>
                   {/* <Link to="/weddOne" exact>546321</Link> */}
                   46512231
               </div>
               <ul>
                   <Route path='/weddOne'  component={weddOne}/>
                   
                 {     
            

                    //  arr.map((item,i)=><li key={i} >
                    //  <Link to={item.pathname}>{item.name}</Link>
                    //  </li>)                  
               } 
               </ul>
               {/* <Route path='/' component={component}/> */}
               
            </div>
        )
    }
}
export default Wedd